/**
 * Created by Rag_Panda on 2016/1/2.
 */
$app.controller("IndexController",function($scope,$http){

    $scope.getArticle = function(){
        $http.post("/api_sIndexArticle",{query_limit:{
                start: 0,
                num : 6,
                sort : "article_id",
                desc :true

        }}).success(function(response){
            $scope.articleData = response.data;
        });
    }



    $scope.getArticle();
});